package com.medaxis.hpams.sso.domain;


import com.baomidou.mybatisplus.annotation.TableName;
import com.medaxis.hpams.sso.domain.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 *
 * @date 2021-08-24
 */
@Data
@ApiModel(description = "菜单类实体")
@TableName("sso_menu")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Menu  extends BaseDto
{


    /** 菜单ID */
    @ApiModelProperty("菜单ID")
    private Long menuId;

    /** 父节点菜单ID */
    @ApiModelProperty("父节点菜单ID")
    private Long parentId;

    /** 菜单名称 */
    @ApiModelProperty("菜单名称")
    private String menuName;

    /** 菜单key */
    @ApiModelProperty("菜单key")
    private String menuKey;

    /** 所属组 */
    @NotBlank(message = "所属系统不能为空")
    @ApiModelProperty("所属系统")
    private String systemId;

    /** 权限 */
    @ApiModelProperty("权限")
    private String perms  ;

}
